package com.jspxcms.plug.repository;

import com.jspxcms.common.orm.Limitable;
import com.jspxcms.plug.domain.PlugDisease;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;

import java.util.Collection;
import java.util.List;

public interface PlugDiseaseDao extends Repository<PlugDisease, Integer>, PlugDiseaseDaoPlus {
	public Page<PlugDisease> findAll(Specification<PlugDisease> spec, Pageable pageable);

	public List<PlugDisease> findAll(Specification<PlugDisease> spec, Limitable limitable);

	public PlugDisease findOne(Integer id);

	public PlugDisease save(PlugDisease bean);

	public void delete(PlugDisease bean);

}
